<template>
	<view class="layout">
		<scroll-view direction="vertical" class="scroll" ref="scroll">
			<LifeDemo v-if="show"></LifeDemo>
		</scroll-view>
	</view>
</template>

<script setup>
import { onMounted, ref } from 'vue';

	const scroll = ref(null);
	const show = ref(true);
	
	setTimeout(()=> {
		show.value = false;
	},2000)
	onMounted(() => {
		console.log(scroll.value);
	})
</script>

<style lang="scss" scoped>
scroll-view {
	background: forestgreen;
	.list {
		width: 100%;
		height: 40;
		background: navajowhite;
	}
}
</style>
